gtk4.git
10 years agowayland: Wait for output and seat information
Matthias Clasen [Thu, 9 Apr 2015 04:14:20 +0000 (00:14 -0400)]
wayland: Wait for output and seat information

When we open the connection, we get the wl_output object,
but we return before all the information such as monitor
geometry has arrived, which causes us to misinform early
users of this information. Do a roundtrip here that causes
us to wait until the information is complete. Do the same
for seats, just in case.
https://bugzilla.gnome.org/show_bug.cgi?id=747471

10 years agowayland: Add more debug output
Matthias Clasen [Thu, 9 Apr 2015 04:13:37 +0000 (00:13 -0400)]
wayland: Add more debug output

10 years agoMake gtk-update-icon-cache not fall over leftover temp files
Matthias Clasen [Thu, 9 Apr 2015 00:30:26 +0000 (20:30 -0400)]
Make gtk-update-icon-cache not fall over leftover temp files

This is a followup to 0fd185fa6de2a89c11b4a28. There is no
good reason to only try again if --force is passed. Do it
always.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1194957

10 years agotree view: Avoid a crash with rubberbanding
Matthias Clasen [Wed, 8 Apr 2015 22:54:45 +0000 (18:54 -0400)]
tree view: Avoid a crash with rubberbanding

When a treeview is destroyed while rubberbanding is going
on, we crash because the rb tree is nuked before we want
to access it to stop the rubberbanding. To avoid this crash
end the rubberbanding early in destroy().

See
https://bugzilla.redhat.com/show_bug.cgi?id=1173904

10 years agoGtkApplication: avoid a crash
Matthias Clasen [Wed, 8 Apr 2015 19:44:21 +0000 (15:44 -0400)]
GtkApplication: avoid a crash

It can apparently happen that we get focus in events
on windows after gtk_application_shutdown() has been
called. Avoid an unnecessary crash in this case.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1176339

10 years agoRevert "image: Optimize non-resize changes"
Matthias Clasen [Wed, 8 Apr 2015 18:13:20 +0000 (14:13 -0400)]
Revert "image: Optimize non-resize changes"

This reverts commit bae97a4c6bcb1c82d4a5f296c3d428173e31c6e4.

We're still seeing regressions from there, see
http://bugzilla.redhat.com/show_bug.cgi?id=1208183

10 years agotestgtk: Respect display cursor size limitations
Matthias Clasen [Tue, 7 Apr 2015 22:39:10 +0000 (18:39 -0400)]
testgtk: Respect display cursor size limitations

Instead of hardcoding 64, ask the display about the
maximal supported cursor size.

10 years agomir: Fix build failure due to changed API
William Hua [Tue, 7 Apr 2015 14:33:35 +0000 (10:33 -0400)]
mir: Fix build failure due to changed API

mir_surface_set_event_handler() now takes three arguments.

10 years agoFix indicator proximity checks
Matthias Clasen [Tue, 7 Apr 2015 01:27:17 +0000 (21:27 -0400)]
Fix indicator proximity checks

The coordinate translations here were not working properly
for window widgets inside the scrolled window, as can be
seen e.g. for the horizontal scrollbar of the 'Tree View'
example in gtk3-demo.

https://bugzilla.gnome.org/show_bug.cgi?id=747406

10 years agoMake indicators pop out when needed
Matthias Clasen [Mon, 6 Apr 2015 13:16:03 +0000 (09:16 -0400)]
Make indicators pop out when needed

When moving over a non-expanded indicator from the outside, we were
not expanding it, due to on_scrollbar being true. This can be seen
e.g. when moving from the content pane over to the sidebar indicator
in gtk3-demo. We must still ensure that the indicator is expanded
when receiving motion events over the indicator.

https://bugzilla.gnome.org/show_bug.cgi?id=747407

10 years agoUpdated breton translation
Denis Arnaud [Mon, 6 Apr 2015 13:00:01 +0000 (15:00 +0200)]
Updated breton translation

10 years agodocs: Note the side effects of GtkLabel setters
Emmanuele Bassi [Sat, 4 Apr 2015 12:54:34 +0000 (13:54 +0100)]
docs: Note the side effects of GtkLabel setters

The gtk_label_set_text() and gtk_label_set_markup() functions have
various side effects that ought to be documented, especially for
non-C developers using properties directly.

https://bugzilla.gnome.org/show_bug.cgi?id=747121

10 years agofile chooser: Ensure a folder is loaded when browsing
Matthias Clasen [Mon, 6 Apr 2015 02:27:23 +0000 (22:27 -0400)]
file chooser: Ensure a folder is loaded when browsing

Just showing an empty list when the user hits Ctrl-l in
recent files is not very useful. Load the home directory
instead.

10 years agofile chooser: Open location entry more easily
Matthias Clasen [Mon, 6 Apr 2015 02:12:46 +0000 (22:12 -0400)]
file chooser: Open location entry more easily

Show the location entry also when alphanumerics are typed
into the list.

10 years agotestfilechooser: Improve filter setup
Matthias Clasen [Mon, 6 Apr 2015 02:09:22 +0000 (22:09 -0400)]
testfilechooser: Improve filter setup

It is not ideal when the default filter filters away
all files, so change things to select the 'all files'
filter by default.

10 years agoFormatting fix
Matthias Clasen [Mon, 6 Apr 2015 02:09:04 +0000 (22:09 -0400)]
Formatting fix

10 years agoFormatting fix
Matthias Clasen [Mon, 6 Apr 2015 02:07:59 +0000 (22:07 -0400)]
Formatting fix

10 years agotestgtk: Set initial cursor
Matthias Clasen [Sun, 5 Apr 2015 23:10:39 +0000 (19:10 -0400)]
testgtk: Set initial cursor

Arrange for the entry and the cursor area to both start out
with the arrow cursor.

10 years agotestgtk: Redo the cursor example
Matthias Clasen [Sun, 5 Apr 2015 23:00:44 +0000 (19:00 -0400)]
testgtk: Redo the cursor example

Use cursor names instead of font cursors, so we can also show
cursors that are not represented in the X cursor font and thus
don't have a value in the GdkCursorType enumeration.

10 years agowayland: Don't mix free and g_strdup
Matthias Clasen [Sun, 5 Apr 2015 22:59:51 +0000 (18:59 -0400)]
wayland: Don't mix free and g_strdup

While it works most of the time, this is technically
not correct.

10 years agotestgtk: Update cursor theme on size change
Matthias Clasen [Sun, 5 Apr 2015 17:28:26 +0000 (13:28 -0400)]
testgtk: Update cursor theme on size change

We were connecting to the wrong signal, so we were not picking
up all changes to the spin button value.

10 years agoGtkListBox: Make model binding introspectable
Matthias Clasen [Sun, 5 Apr 2015 12:13:24 +0000 (08:13 -0400)]
GtkListBox: Make model binding introspectable

Introspection can't deal with bare pointers, so annotate
the callback as taking objects. This is the outcome of
discussion in
https://bugzilla.gnome.org/show_bug.cgi?id=746893

10 years agogtktextbuffer: small cleanup in clipboard handling
Paolo Borelli [Sun, 29 Mar 2015 10:22:42 +0000 (12:22 +0200)]
gtktextbuffer: small cleanup in clipboard handling

Make code shorter and also more efficient since we move the
selection check out of the loop

https://bugzilla.gnome.org/show_bug.cgi?id=747096

10 years agox11/gl: Fix use after free
Olivier Fourdan [Fri, 3 Apr 2015 15:51:57 +0000 (17:51 +0200)]
x11/gl: Fix use after free

https://bugzilla.gnome.org/show_bug.cgi?id=747305

Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
10 years agoAdwaita: stronger entry focus indication
Lapo Calamandrei [Thu, 2 Apr 2015 16:49:33 +0000 (18:49 +0200)]
Adwaita: stronger entry focus indication

See https://bugzilla.gnome.org/show_bug.cgi?id=746202 for details.

10 years agoUpdated Slovak translation
Dušan Kazik [Thu, 2 Apr 2015 08:57:09 +0000 (08:57 +0000)]
Updated Slovak translation

10 years agoscrolledwindow: Ignore 0/0 scroll events when possibly cancelling animation
Carlos Garnacho [Tue, 31 Mar 2015 18:24:07 +0000 (20:24 +0200)]
scrolledwindow: Ignore 0/0 scroll events when possibly cancelling animation

These should be used eventually to start kinetic scrolling, so should definitely
be ignored on cancellation.

https://bugzilla.gnome.org/show_bug.cgi?id=747133

10 years agoUpdated Russian translation
Stas Solovey [Wed, 1 Apr 2015 12:15:49 +0000 (12:15 +0000)]
Updated Russian translation

10 years agoUpdated Russian translation
Stas Solovey [Wed, 1 Apr 2015 11:31:10 +0000 (11:31 +0000)]
Updated Russian translation

10 years agoUdated Czech translation
Marek Černocký [Wed, 1 Apr 2015 09:55:02 +0000 (11:55 +0200)]
Udated Czech translation

10 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 31 Mar 2015 19:09:21 +0000 (21:09 +0200)]
Updated Slovenian translation

10 years agoscrolledwindow: Remove needless "dragging" field from Indicator struct
Carlos Garnacho [Tue, 31 Mar 2015 11:13:50 +0000 (13:13 +0200)]
scrolledwindow: Remove needless "dragging" field from Indicator struct

The "over" state already stays set while scrollbar dragging happens, there's
no need to double track that.

https://bugzilla.gnome.org/show_bug.cgi?id=746961

10 years agoscrolledwindow: Check the event widget on captured motion events
Carlos Garnacho [Tue, 31 Mar 2015 11:01:34 +0000 (13:01 +0200)]
scrolledwindow: Check the event widget on captured motion events

This path is only intended to be triggered on events directed towards the
child of the scrolledwindow, so make it explicitly so. This avoids scrollbar
"over" state flashing when dragging finishes within the slider.

https://bugzilla.gnome.org/show_bug.cgi?id=746961

10 years agowayland: Set a more correct xdg_surface application id
Jonas Ådahl [Mon, 23 Mar 2015 05:08:09 +0000 (13:08 +0800)]
wayland: Set a more correct xdg_surface application id

The "app_id" of a xdg_surface should be the ID that can potentially be
used to get the DBUS name or the .desktop file.

For GtkApplication programs this is often the ID passed when creating the
GtkApplication object, so when available lets use that.

As fallbacks, first try g_get_prgname as it often corresponds to the
basename part of the .dektop file for non-GtkApplication programs.
Otherwise use gdk_get_program_class, even though that string usually
doesn't conform to the expectations of xdg_surface.set_application_id.

https://bugzilla.gnome.org/show_bug.cgi?id=746435

10 years agoUpdated Russian translation
Stas Solovey [Mon, 30 Mar 2015 22:40:20 +0000 (22:40 +0000)]
Updated Russian translation

10 years agoRevert "Adwaita: desaturate selected color for backdrop"
Jakub Steiner [Mon, 30 Mar 2015 12:54:25 +0000 (14:54 +0200)]
Revert "Adwaita: desaturate selected color for backdrop"

This reverts commit 6f478db2facd8744714b7ab374d2687d777653a3.

As per discussion on bug 746202, the real solution to the case
in bug 704352 is what the reporter suggests.

10 years agoUpdated Ukrainian translation
Daniel Korostil [Mon, 30 Mar 2015 05:52:44 +0000 (08:52 +0300)]
Updated Ukrainian translation

10 years agogtkdnd: Restore widget opacity after fading out
Carlos Garnacho [Sat, 28 Mar 2015 15:22:09 +0000 (16:22 +0100)]
gtkdnd: Restore widget opacity after fading out

Otherwise the widget is left fully transparent, and will start as such if
the widget is reused.

10 years agogtkdnd: Set the icon helper from the drag site onto the context
Carlos Garnacho [Sat, 28 Mar 2015 13:16:45 +0000 (14:16 +0100)]
gtkdnd: Set the icon helper from the drag site onto the context

If the icon happened to come from the drag site icon helper (ie. set through
gtk_drag_source_set_icon*), it would be referenced on the GtkDragInfo,
but not hooked into its context. This results on non visible drag windows,
until set_icon_helper() happened to be called on some path.

10 years agoroundedbox: Fix a copy/paste error
Benjamin Otte [Sun, 29 Mar 2015 20:16:14 +0000 (22:16 +0200)]
roundedbox: Fix a copy/paste error

This caused shadows to not be drawn in certain situations when overlayed
via a popover animation.

https://bugzilla.gnome.org/show_bug.cgi?id=746862

10 years agoUpdated Czech translation
Marek Černocký [Sun, 29 Mar 2015 11:49:43 +0000 (13:49 +0200)]
Updated Czech translation

10 years agoradio button: Fix directional navigation
Matthias Clasen [Sun, 29 Mar 2015 04:24:35 +0000 (00:24 -0400)]
radio button: Fix directional navigation

GtkRadioButton had a deficient copy of the focus sort code
in GtkContainer, causing focus to jump over the next button
in the list. Just use _gtk_container_focus_sort() here,
which fixes the bug _and_ saves 80 lines of code.

https://bugzilla.gnome.org/show_bug.cgi?id=746817

10 years agoFix separator in testsplitheaders
Matthias Clasen [Sun, 29 Mar 2015 02:32:12 +0000 (22:32 -0400)]
Fix separator in testsplitheaders

10 years agogtkprogressbar: fix size allocation
Lars Uebernickel [Tue, 24 Mar 2015 13:25:49 +0000 (14:25 +0100)]
gtkprogressbar: fix size allocation

As of 74405cc, progress bars use a new design with values drawn on top
(or to the left) of the through instead of inside of it. This change
brought a number of regressions: the min-horizontal-bar-height and
min-vertical-bar-width style properties are not respected anymore. For
vertical progress bars, the value was drawn too close to the bar and not
centered vertically.

Fix this by respecting the style properties and drawing the value label
at the correct position.

Also, the xspacing and yspacing properties didn't server any apparent
purpose. Change their semantics to mean "the spacing between the label
and the bar". Hence, they only need to be added to the size request when
showing the label. Since we are changing semantics anyway, reduce their
default values from 7 to 2, to avoid and excessive gap.

https://bugzilla.gnome.org/show_bug.cgi?id=746688

10 years agomake libcanberra support optional
Antoine Jacoutot [Fri, 27 Mar 2015 18:04:20 +0000 (19:04 +0100)]
make libcanberra support optional

Make it possible to control libcanberra support so we don't risk ending up with
a cyclic dependency when using packages: gtk+ -> libcanberra-gtk3 -> gtk+

https://bugzilla.gnome.org/show_bug.cgi?id=746904

10 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 28 Mar 2015 21:42:42 +0000 (22:42 +0100)]
Updated Slovenian translation

10 years agoUpload Catalan translation
Jordi Mas [Sat, 28 Mar 2015 12:36:25 +0000 (13:36 +0100)]
Upload Catalan translation

10 years agoGtkListBox: fix model binding refcount issue
Ryan Lortie [Fri, 27 Mar 2015 15:57:38 +0000 (11:57 -0400)]
GtkListBox: fix model binding refcount issue

As it is, GtkListBox model binding will work nicely as long as your
create_widget_func returns a floating reference on the newly-created
widget.

If you try to return a full reference (as any higher-level language
would do) then you will leak that reference.

Fix that up by converting any floating references into full references
and then unconditionally releasing the full reference after adding to
the box.

https://bugzilla.gnome.org/show_bug.cgi?id=746893

10 years agoscrolledwindow: Extend trackpoint heuristic to ALPS trackpoints
Hans de Goede [Thu, 26 Mar 2015 18:46:56 +0000 (19:46 +0100)]
scrolledwindow: Extend trackpoint heuristic to ALPS trackpoints

These have a different characteristic device name, look for it too
in order to enable trackpoint features.

10 years agodocs: Add initialization example for GtkGLArea
Emmanuele Bassi [Thu, 26 Mar 2015 17:40:40 +0000 (17:40 +0000)]
docs: Add initialization example for GtkGLArea

Show how to safely check for errors when initializing the OpenGL
pipeline.

10 years agox11/gl: Do not use GLX_EXT_texture_from_pixmap if not available
Emmanuele Bassi [Thu, 26 Mar 2015 17:26:29 +0000 (17:26 +0000)]
x11/gl: Do not use GLX_EXT_texture_from_pixmap if not available

If the GLX_EXT_texture_from_pixmap extension is not available when we
did the extensions check, then there's no point in using the backend
specific code paths that rely on it.

10 years agoW32: Only override window miximized position for CSDed windows
Руслан Ижбулатов [Thu, 26 Mar 2015 17:01:59 +0000 (17:01 +0000)]
W32: Only override window miximized position for CSDed windows

This fixes an issue with non-CSDed windows being improperly positioned
when maximized, which was introduced by the previous commit.

https://bugzilla.gnome.org/show_bug.cgi?id=746821

10 years agoW32: Correctly set maximized window position
Руслан Ижбулатов [Thu, 26 Mar 2015 15:22:07 +0000 (15:22 +0000)]
W32: Correctly set maximized window position

Use screen workarea to *also* set the position of a maximized window,
not just its size. Without this the window position defaults to 0:0
(the topleft corner), which is wrong when taskbar is position along the
top or left edge of the screen.

https://bugzilla.gnome.org/show_bug.cgi?id=746821

10 years agobbox: correct documentation typo
Will Thompson [Sun, 23 Jun 2013 14:35:21 +0000 (15:35 +0100)]
bbox: correct documentation typo

10 years agoFix an AtkStateType emitted for GtkBooleanCellAccessible
Joanmarie Diggs [Wed, 25 Mar 2015 23:21:37 +0000 (19:21 -0400)]
Fix an AtkStateType emitted for GtkBooleanCellAccessible

An apparent copy-and-paste error is resulting in ATs being notified of
changes in ATK_STATE_CHECKED when the cell's "sensitive" state changes.

https://bugzilla.gnome.org/show_bug.cgi?id=746784

10 years agotextview: Fix "Since" versions after backport
Rico Tzschichholz [Wed, 25 Mar 2015 19:52:43 +0000 (20:52 +0100)]
textview: Fix "Since" versions after backport

Fix for 28063ee2e42e7ce47b7bd5326f2d53875a377d57 which got cherry-picked
to 3.16

10 years agodemo/glarea: Check errors on GtkGLArea
Emmanuele Bassi [Wed, 25 Mar 2015 15:20:36 +0000 (15:20 +0000)]
demo/glarea: Check errors on GtkGLArea

We should not call OpenGL API if GtkGLArea is in an error state.

https://bugzilla.gnome.org/show_bug.cgi?id=746746

10 years agoglarea: Check that the context is not NULL
Emmanuele Bassi [Wed, 25 Mar 2015 15:19:30 +0000 (15:19 +0000)]
glarea: Check that the context is not NULL

The public API should perform more checks when it comes to an NULL
context.

https://bugzilla.gnome.org/show_bug.cgi?id=746746

10 years agox11/gl: Do not try to call MakeCurrent with a NULL context
Emmanuele Bassi [Wed, 25 Mar 2015 15:18:44 +0000 (15:18 +0000)]
x11/gl: Do not try to call MakeCurrent with a NULL context

This should not happen, but better safe than sorry.

https://bugzilla.gnome.org/show_bug.cgi?id=746746

10 years agox11/gl: Trap GL context creation
Emmanuele Bassi [Wed, 25 Mar 2015 14:34:42 +0000 (14:34 +0000)]
x11/gl: Trap GL context creation

Avoid an X11 error in case the context creation fails, so we can avoid a
crash and pick it up in the upper layers, and display an error.

https://bugzilla.gnome.org/show_bug.cgi?id=746746

10 years agofilechooser: Use same priority everywhere
Benjamin Otte [Wed, 25 Mar 2015 03:27:33 +0000 (04:27 +0100)]
filechooser: Use same priority everywhere

I managed to stall recent files today while trying to save a GTK
testcase in glade that contained enough spinning spinners that the CPU
was saturated just redrawing things.

I had to navigate the filesystem!

10 years agoGtkRange: Check "inverted" property when drawing
Marcus Karlsson [Tue, 24 Mar 2015 21:14:27 +0000 (22:14 +0100)]
GtkRange: Check "inverted" property when drawing

The direction in which the slider moves can be inverted by setting the
inverted property. But the draw method does not check this, instead it
checks if the direction of the widget is set to be right to left.

Call the should_invert function in order to determine if the direction
of the range should be inverted. It too checks the widget's direction,
but also checks the "inverted" property, and allows the range to be
drawn inverted even if it is vertically oriented.

https://bugzilla.gnome.org/show_bug.cgi?id=746712

10 years agoa11y: Only emit name-changed once
Joanmarie Diggs [Wed, 25 Mar 2015 03:01:48 +0000 (04:01 +0100)]
a11y: Only emit name-changed once

We were emitting it twice, once with deleting the old text, once with
inserting the new text.

https://bugzilla.gnome.org/show_bug.cgi?id=746706

10 years agoa11y: Free the cell text after emitting text-changed:delete.
Joanmarie Diggs [Wed, 25 Mar 2015 03:00:20 +0000 (04:00 +0100)]
a11y: Free the cell text after emitting text-changed:delete.

This is needed because AT-SPI2's ATK bridge exposes the deleted string
to ATs.

https://bugzilla.gnome.org/show_bug.cgi?id=746706

10 years agoa11y: Refactor code
Joanmarie Diggs [Wed, 25 Mar 2015 02:57:45 +0000 (03:57 +0100)]
a11y: Refactor code

Put the equality check in front. This allows better detection of when an
insert or delete needs to be emitted.

Also, only emit text-changed:delete if the deleted text is not the empty
string. Only emit text-changed:insert if the inserted text is not the
empty string.

https://bugzilla.gnome.org/show_bug.cgi?id=746706

10 years agoa11y: Refactor textcellaccessible code
Joanmarie Diggs [Wed, 25 Mar 2015 02:54:19 +0000 (03:54 +0100)]
a11y: Refactor textcellaccessible code

Compute the new text and its length in advance. This way those
computations will not confuse us when they happen in the middle of the
actual action.

https://bugzilla.gnome.org/show_bug.cgi?id=746706

10 years agoGtkRange: Fix drawing of fill-level
Marcus Karlsson [Tue, 24 Mar 2015 21:31:52 +0000 (22:31 +0100)]
GtkRange: Fix drawing of fill-level

Compute the proportion of the range that should be filled to match the
fill level, and use it to compute the starting point and length of the
area between the slider and the fill level.

https://bugzilla.gnome.org/show_bug.cgi?id=734741

10 years agoinspector: fix warning about not using the right format for an int64
Ignacio Casal Quinteiro [Tue, 24 Mar 2015 12:34:10 +0000 (13:34 +0100)]
inspector: fix warning about not using the right format for an int64

10 years agocssnode: Clear widget path more aggressively
Benjamin Otte [Tue, 24 Mar 2015 03:14:28 +0000 (04:14 +0100)]
cssnode: Clear widget path more aggressively

When recomputing CSS, we need a correct widget path in the fallback mode
where we're still using widget paths.
So we need to invalidate it everytime it actually changes, and not just
when emitting the style-updated signal.

Fixes css-match-regions reftest.

10 years agoUpdated Korean translation
Changwoo Ryu [Tue, 24 Mar 2015 00:54:04 +0000 (09:54 +0900)]
Updated Korean translation

10 years agox11/gl: Removing some more legacy GL calls
Niels Nesse [Mon, 23 Mar 2015 22:15:08 +0000 (22:15 +0000)]
x11/gl: Removing some more legacy GL calls

They are not required any more.

http://bugzilla.gnome.org/show_bug.cgi?id=746668

10 years agox11/gl: Do not call glEnable/glDisable with GL_TEXTURE_2D
Emmanuele Bassi [Mon, 23 Mar 2015 22:03:00 +0000 (22:03 +0000)]
x11/gl: Do not call glEnable/glDisable with GL_TEXTURE_2D

These are fixed pipeline functions, and Mesa will warn (if debugging
messages are enabled). At best, they are poinless calls.

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Mon, 23 Mar 2015 21:23:30 +0000 (22:23 +0100)]
Updated Basque language

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Mon, 23 Mar 2015 21:22:39 +0000 (22:22 +0100)]
Updated Basque language

10 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Mon, 23 Mar 2015 21:19:10 +0000 (22:19 +0100)]
Updated Basque language

10 years agoFix a minor typo in translatable string
Piotr Drąg [Mon, 23 Mar 2015 16:35:41 +0000 (17:35 +0100)]
Fix a minor typo in translatable string

10 years agoUpdated Polish translation
Piotr Drąg [Mon, 23 Mar 2015 16:33:05 +0000 (17:33 +0100)]
Updated Polish translation

10 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Mon, 23 Mar 2015 16:25:55 +0000 (17:25 +0100)]
Updated POTFILES.in and POTFILES.skip

10 years agoUpdated Czech translation
Marek Černocký [Mon, 23 Mar 2015 15:15:57 +0000 (16:15 +0100)]
Updated Czech translation

10 years agocsd: Fix an oversight for popups
Matthias Clasen [Mon, 23 Mar 2015 14:39:32 +0000 (10:39 -0400)]
csd: Fix an oversight for popups

After the recent rework of client-side shadow code, menus,
tooltips and similar popups were ending up with solid decorations.
Fix this oversight.

10 years agoUpdated Hungarian translation
Balázs Úr [Mon, 23 Mar 2015 14:40:53 +0000 (14:40 +0000)]
Updated Hungarian translation

10 years agoUpdate properties Hebrew translation
Yosef Or Boczko [Mon, 23 Mar 2015 12:53:57 +0000 (14:53 +0200)]
Update properties Hebrew translation

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Mon, 23 Mar 2015 12:52:42 +0000 (14:52 +0200)]
Updated Hebrew translation

10 years agoUpdated Greek translations
Tom Tryfonidis [Mon, 23 Mar 2015 09:59:24 +0000 (11:59 +0200)]
Updated Greek translations

10 years agoUpdated Italian translation
Milo Casagrande [Mon, 23 Mar 2015 07:29:55 +0000 (07:29 +0000)]
Updated Italian translation

10 years agoUpdated Italian translation
Milo Casagrande [Mon, 23 Mar 2015 07:25:57 +0000 (07:25 +0000)]
Updated Italian translation

10 years agoStop using GDK_POINTER_MOTION_HINT_MASK in widgets
Matthias Clasen [Sun, 22 Mar 2015 04:49:16 +0000 (00:49 -0400)]
Stop using GDK_POINTER_MOTION_HINT_MASK in widgets

It is deprecated and no longer needed, and,as observed in
https://bugzilla.gnome.org/show_bug.cgi?id=746253 it
interferes with turning off event compression.

10 years agoSilence another compiler warning
Matthias Clasen [Sun, 22 Mar 2015 19:20:43 +0000 (15:20 -0400)]
Silence another compiler warning

Again, our habit of comparing enum values against -1.

10 years agoDon't return G_TYPE_INVALID as a pointer
Matthias Clasen [Sun, 22 Mar 2015 19:19:59 +0000 (15:19 -0400)]
Don't return G_TYPE_INVALID as a pointer

Use NULL for g_return_val_if_fail checks if the function returns
a pointer. Pointed out by clang.

10 years agotext view: Avoid clang compiler warnings
Matthias Clasen [Sun, 22 Mar 2015 19:19:17 +0000 (15:19 -0400)]
text view: Avoid clang compiler warnings

Again, our habit to use -1 as an unset value for enum types.

10 years agoRemove a redundant const
Matthias Clasen [Sun, 22 Mar 2015 19:18:35 +0000 (15:18 -0400)]
Remove a redundant const

const gchar const is still just const gchar, unless there's
indirections in between.

10 years agocss: Silence a clang warning
Matthias Clasen [Sun, 22 Mar 2015 19:17:27 +0000 (15:17 -0400)]
css: Silence a clang warning

Clang complains that this check can never be true. Since this
is a argument range check which we do to catch bad input,
convince clang to not complain instead of taking it out.

10 years agoRemove a pointless comparison
Matthias Clasen [Sun, 22 Mar 2015 19:16:14 +0000 (15:16 -0400)]
Remove a pointless comparison

Comparing an unsigned value against < 0 is not going to succeed.
Pointed out by clang.

10 years agopaper size: Don't use abs() on floats
Matthias Clasen [Sun, 22 Mar 2015 19:15:42 +0000 (15:15 -0400)]
paper size: Don't use abs() on floats

Use fabs() instead. Pointed out by clang.

10 years agoMore of the same
Matthias Clasen [Sun, 22 Mar 2015 19:14:42 +0000 (15:14 -0400)]
More of the same

A similar case in GtkIconHelper. Here we were confusing ourselves,
and compared a icon_size against -1, although the variable is
never set to -1.

10 years agoAvoid some clang compiler warnings
Matthias Clasen [Sun, 22 Mar 2015 19:12:30 +0000 (15:12 -0400)]
Avoid some clang compiler warnings

Avoid some compiler warnings from clang in deprecated code.
Most of these are around our habit of using -1 as an 'unset'
value for enumerations.

10 years agoFix some clang warnings
Matthias Clasen [Sun, 22 Mar 2015 18:40:57 +0000 (14:40 -0400)]
Fix some clang warnings

It complains about double const, and it is right.

10 years agoMake the blur code compile with clang
Matthias Clasen [Sun, 22 Mar 2015 17:48:02 +0000 (13:48 -0400)]
Make the blur code compile with clang

clang complains that the expression involving sqrt() is not
constant, and thus refuses to accept it as a case label. So,
use precomputed values instead.

https://bugzilla.gnome.org/show_bug.cgi?id=746468

10 years agoFix the build
Matthias Clasen [Sun, 22 Mar 2015 15:55:33 +0000 (11:55 -0400)]
Fix the build

10 years agotooltip: Minor cleanup
Matthias Clasen [Sun, 22 Mar 2015 15:47:23 +0000 (11:47 -0400)]
tooltip: Minor cleanup

Preserve the symmetry in gtk_tooltip_set_last_window.